#!groovy

@Library('jenkinslibs@master') _


def hello = new org.cicd.devops.hello()

pipeline {
    agent any
    tools {
        maven 'mvn3'
        jdk 'jdk'
    }

    stages {
        stage('参数预处理') {
            steps {
                script {
                    hello.sayHello();
                }
                echo 'params handling ....'
            }
        }
        stage('构建') {
            steps {
                echo 'package building ....'
            }
        }
        stage('打包和上传') {
            steps {
                echo 'package install ....'
            }
        }
        stage('环境部署') {
            steps {
                echo 'package deploy ....'
            }
        }
    }
}